package myJs

import myJs.cps.Style
import myJs.myPkg.{LayerOptions, layer}
import slinky.core.FunctionalComponent
import slinky.core.annotations.react
import slinky.web.html._
import typings.csstype.csstypeStrings

/**
 * Created by yz on 22/4/2022
 */
@react object FooterCp {

  type Props = Unit

  val component = FunctionalComponent[Props] { props =>

    object FTool {

      def viewAgree = () => {
        val options = LayerOptions(content = "XXX", title = "使用须知", btn = List("知道了"), closeBtn = 0)
        layer.open(options)
        ()
      }

    }

    div(style := Style(textAlign = csstypeStrings.center), className := "page-footer",
      div(style := Style(textAlign = csstypeStrings.center), className := "page-footer-inner",
        "版权所有2018 深圳市绘云生物科技有限公司 All Rights Reserved 完整版本：V1.0.0.0；发布版本V1",
      ),
      div(className := "scroll-to-top",
        i(className := "icon-arrow-up")
      )
    )
  }

}
